IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[cms_sp_ModuleSelectOne]') AND type in (N'P', N'PC'))
	DROP PROCEDURE [dbo].[cms_sp_ModuleSelectOne]
GO
create procedure [dbo].[cms_sp_ModuleSelectOne]
(
@Id int
)
as
select 
	ModuleId as 'Id',
	SiteGroupId,
	SiteId,
	PackageId,
	ModuleName,
	ModuleDescription,
	ModuleViewParameters,
	ModuleCommonParameters,
	CreatedBy,
	DateCreated,
	LastUpdatedBy,
	DateLastUpdated
from dbo.Modules
where ModuleId = @Id


GO

